<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <style type="text/css">
        li{list-style: none; float: left;}
        a{
            cursor:pointer
        }
        p{
            padding: 0;
            margin: 0;
        }
    </style>
    <script type="text/javascript">

        $(function () {
            $.post("/node/selectUserName",function (data,status) {
                if(status != "success"){
                    alert("服务出现问题，请稍后再试！");
                    return;
                }
                if(data == "failLogin"){
                    alert("请先进行登录！！")
                    window.location.href="index.html";
                    return;
                }
                $("#userName").html(data);
            });
        });
    </script>
</head>
<body>


    <div class="container-fluid">

        <a id="userName" style="position: absolute; top: 20px; right: 20px;" href="#"></a>

        <div class="row-fluid">
            <div class="clo2">
                <div class="navbar">
                    <div class="navbar-inner">
                        <ul class="nav">
                            <li class="active"><a href="/node/main.html">首页</a></li>
                            <li><a href="/node/addNode.html">写文章</a></li>
                            <li><a href="#">资讯</a></li>
                        </ul>
                    </div>
                </div>
            </div>


            <div class="span10">
                <div>
                    <div>
                        <p align="center" th:text="${node.nodeTitle}" style="font-size: 32px; color:#64854c;font-weight:bold;"></p>
                        <p th:text="${node.nodeCreateTime}" align="right"></p>
                    </div>
                    <hr>
                    <div align="center" style="background-color: #2e2e2e">
                        <div style="width: 80%;height: 500px;background-color: #fff7fb;padding: 10px;" align="left">
                            <div th:utext="${node.nodeContent}">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>